import matplotlib.pyplot as plt
import numpy as np
# 方法一：
# fig=plt.figure(num=1,figsize=(4,4))
# plt.plot([1,2,3,4],[1,2,3,4])
# plt.show()

# 方法2...
fig=plt.figure(num=1,figsize=(4,4))
ax=fig.add_subplot(111)
ax.plot([1,2,3,4],[1,2,3,4])
plt.show()

